package com.test;

import java.util.*;
import java.util.stream.Stream;

/**
 * @author Administrator
 **/
public class 随机数 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()){
            Set<Integer> set = new HashSet<Integer>() {
            };
            int input = scanner.nextInt();
            for (int i = 0; i < input; i++) {
                set.add(scanner.nextInt());
            }
            Stream<Object> sorted = Arrays.stream(set.stream().toArray()).sorted();
            sorted.forEach(System.out::println);
        }
    }
}
